<html>
<head><meta charset="utf-8"><title>Excluding a crate · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html">Excluding a crate</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="232646414"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Excluding%20a%20crate/near/232646414" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Denis <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html#232646414">(Mar 31 2021 at 19:01)</a>:</h4>
<p>Hello everyone! Is there a way to exclude a single crate from indexing? I've got one that takes way too much time to index (in contains A LOT of proc macros), like more than five minutes.</p>



<a name="232647042"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Excluding%20a%20crate/near/232647042" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Denis <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html#232647042">(Mar 31 2021 at 19:05)</a>:</h4>
<p>Excluding a directory which contains the code of that crate doesn't seem to work :(</p>



<a name="232653514"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Excluding%20a%20crate/near/232653514" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html#232653514">(Mar 31 2021 at 19:46)</a>:</h4>
<p>proc macro definitions shouldn't take longer to index that any other crate, so that seems like a bug. Is the source code available somewhere?</p>



<a name="232757904"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Excluding%20a%20crate/near/232757904" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Denis <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html#232757904">(Apr 01 2021 at 13:41)</a>:</h4>
<p>i don't think indexing the definitions takes long time, the thing is billions of lines of code is generated by proc-macros in the crate of interest. unfortunately, the source code of those is not available :(</p>



<a name="232758813"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Excluding%20a%20crate/near/232758813" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html#232758813">(Apr 01 2021 at 13:48)</a>:</h4>
<p>Sounds like the <code>winrt</code> crate</p>



<a name="232777950"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Excluding%20a%20crate/near/232777950" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Edwin Cheng <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html#232777950">(Apr 01 2021 at 15:36)</a>:</h4>
<p>I still remember my reaction when I was facing <code>winrt</code> problem first time in RA</p>



<a name="232885119"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Excluding%20a%20crate/near/232885119" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Denis <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Excluding.20a.20crate.html#232885119">(Apr 02 2021 at 10:40)</a>:</h4>
<p>well there's always an option to disable proc macro analysis and it helps, but it's a shame to lose such a great feature :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>